package com.huiminpay.merchant.api;

import com.huiminpay.merchant.common.cache.domain.BusinessException;
import com.huiminpay.merchant.dto.AppDTO;

import java.util.List;

public interface AppService {
    //商户创建应用
    AppDTO createApp(Long merchantId, AppDTO app) throws BusinessException;
   //查询商户下的应用列表
    List<AppDTO> queryAppByMerchant(Long merchantId) throws BusinessException;
    //根据业务id查询应用
    AppDTO getAppById(String id) throws BusinessException;
    //查询应用是否在商户下
    Boolean queryAppInMerchant(String appId, Long merchantId) throws BusinessException;
}
